package com.acme.bankapp.service.bank;

import com.acme.bankapp.domain.bank.Account;
import com.acme.bankapp.domain.bank.Bank;
import com.acme.bankapp.domain.bank.Client;

public class BankService {
	public void addClient(Bank bank, Client client) {
		bank.addClient(client);
	}
	
	public void printMaximumAmountToWithdraw(Bank bank) {
		for (Client cur: bank.getClients()) {
			System.out.println(cur.getClientSalutation());
			for (Account acc: cur.getAccounts()) {
				System.out.println(acc.maxAmountToWithdraw());
			}
		}
	}

}
